<template>
  <div id="app">
    <!-- <router-view /> -->
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive"></router-view>
  </div>
</template>

<script>
export default {
  name: "App",
  created() {
    const token =localStorage.getItem("token");
    const projectId =localStorage.getItem("projectId");
    this.$store.dispatch("getNewToken",JSON.parse(token));
    this.$store.dispatch("getNewProjectId",JSON.parse(projectId));

  }
};
</script>

<style>
#app {
  height: 100%;
  padding: 0px;
  margin: 0px;
}
</style>
